package com.library.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源审核中间表
 * </p>
 *
 * @author ccl
 * @since 2025-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ResourceAudit对象", description="资源审核中间表")
public class ResourceAudit extends Model<ResourceAudit> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Long resourceId;

    @ApiModelProperty(value = "资源名称")
    private String resourceName;

    @ApiModelProperty(value = "资源w文件")
    private String resourceFile;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "简介")
    private String briefIntroduction;

    @ApiModelProperty(value = "出版社")
    private String press;

    @ApiModelProperty(value = "大类id")
    private Long dataTypeId;

    @ApiModelProperty(value = "中图法id")
    private Long bookTypeId;

    @ApiModelProperty(value = "浏览量")
    private Long pageView;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "状态 0-待发布 1-已发布")
    private String status;

    @ApiModelProperty(value = "排序")
    private Long type;

    @ApiModelProperty(value = "总字数")
    private Long totalWords;

    @ApiModelProperty(value = "出版时间")
    private Date publishTime;

    @ApiModelProperty(value = "是否推荐")
    private Integer sfRecommend;

    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "是否点赞")
    private Integer sfLike;

    @ApiModelProperty(value = "是否收藏")
    private Integer sfCollect;

    @ApiModelProperty(value = "创建人")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核状态 0-待审核 1-审核中 2-审核通过")
    private String auditStatus;

    @ApiModelProperty(value = "审核人")
    private String auditPerson;

    @ApiModelProperty(value = "审核时间")
    private Date auditTime;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "县")
    private String area;

    @ApiModelProperty(value = "openId")
    private String openId;

    @Override
    protected Serializable pkVal() {
        return this.resourceId;
    }

}
